<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>教学课程统计</title>
	<link rel="stylesheet" type="text/css" href="/static/css/hw-admin.css">
	<link rel="stylesheet" href="/static/css/total.css">
	
    <!--[if lt IE 9]>
    　 <script src="/static/lib/html5shiv.min.js" type="text/javascript"></script>
       <script src="/static/lib/selectivizr.min.js" type="text/javascript"></script>
    <![endif]-->  
</head>

<body>

    <div class="hw-iframe">
        <div class="hw-header-wrapper">
            <div class="hw-header">
                <div class="hw-header__item--left">
                    修改密码
                </div>
            </div>
        </div>


        <form action="/Admin/Index/editpass" method="POST" id="main-form">
			<!--企业信息 -->
	        <div class="hw-group">
	        	<div class="group-info">
	        		<div class="group-item">
		        		<div class="hw-input-label">
		        			<div class="name"><span>*</span>旧密码</div>
		        			<div class="form-control">
			        			<input class="hw-input" type="password" id="old_pwd" name="old_pwd"  required value="">
		        			</div>
		        		</div>
                    </div>
                    <div class="group-item">
		        		<div class="hw-input-label">
		        			<div class="name"><span>*</span>新密码</div>
		        			<div class="form-control">
			        			<input class="hw-input" minlength="6" onkeyup="this.value=this.value.replace(/\s+/g,'')" type="password" id="new_pwd" name="new_pwd" required value="">
		        			</div>
		        		</div>
                    </div>
                    <div class="group-item">
		        		<div class="hw-input-label">
		        			<div class="name"><span>*</span>确认新密码</div>
		        			<div class="form-control">
			        			<input class="hw-input" onkeyup="this.value=this.value.replace(/\s+/g,'')" type="password" id="sure_pwd" name="sure_pwd" required value="">
		        			</div>
		        		</div>
                    </div>
                    <div class="group-operate" style="background: #fff;">
                        <div class="hw-container">
                            <button class="hw-btn" type="submit">保存</button>
                        </div>
                    </div>
	        	</div>
	        </div>
        </form>
    </div>

	<script src="/static/lib/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="/static/lib/jquery.form.min.js"></script>
	<script type="text/javascript" src="/static/lib/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/static/js/common/upload.js"></script>
	<script type="text/javascript" src="/static/lib/jquery.validate.js"></script>
	<script type="text/javascript" src="/static/lib/messages_zh.js"></script>
	<script type="text/javascript" src="/static/js/common/validateExtend.js"></script>
	<script type="text/javascript" src="/static/js/common/common.js"></script>
    <script type="text/javascript" src="/static/js/common/util.js"></script>


    <script>
			var Form = $('#main-form');

			Form.validate();
			Form.on('submit',function() {
				try {
					if (Form.valid()) {
						if($('input[name=newPassword]').val()!=$('input[name=bank_account]').val()){
							$.alert('两次输入密码不一致！')
							return false;
						}

						Form.submitForm();
					}
				} catch(e) {
					console.error(e);
				}
				return false;
			});
    </script>
</body>
</html>
